function validarEnteros(evt) {
	keynum = (document.all) ? evt.keyCode : evt.which;
	// ESPACIO=32
	// BORRAR=8
	// ENTER=13
	//alert("keynum " + keynum);
	if ((keynum > 47 && keynum < 58) || keynum == 8 || keynum == 13) {
		return true;
	} else {
		return false;
	}

}

function validarNombres(evt) {
	keynum = (document.all) ? evt.keyCode : evt.which;
	// ESPACIO=32
	// BORRAR=8
	// ENTER=13
	// alert("keynum "+keynum);
	// digitos
	if (!(keynum > 47 && keynum < 58) || keynum == 8 || keynum == 13
			|| keynum == 32) {
		return true;
	} else {
		return false;
	}
}

function isNumberKey(evt) {
	
	var charCode = (evt.which) ? evt.which : evt.keyCode;
	//37  39
	
	if (charCode > 31 && (charCode < 48 || charCode > 57))
	{
		if(charCode==37||charCode==39)
			return true;
		return false;
	}	
	return true;
}


function limpiarForm()
{ 
	document.getElementById("formNuevo").reset();
	var retVal = confirm("Do you want to continue ?");
	   if( retVal == true ){
	      alert("User wants to continue!");
		  return true;
	   }else{
	      alert("User does not want to continue!");
		  return false;
	   }
}